<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P75 【例4-2】demo02.html</title>
</head>

<body>
    <script>
        function getSum() {
            var sum = 0;
            for (i in arguments) {
                sum += arguments[i];
            }
            return sum;
        }
        console.log(getSum(10, 20, 30));
    </script>
    <a href="../首页/page04.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>